package com.huaxin.webexam.service.impl;

import java.util.List;

import com.huaxin.webexam.bean.Admin;
import com.huaxin.webexam.bean.Student;
import com.huaxin.webexam.bean.Teacher;
import com.huaxin.webexam.dao.AdminDao;
import com.huaxin.webexam.dao.impl.AdminDaoImpl;
import com.huaxin.webexam.service.AdminService;

public class AdminServiceImpl implements AdminService {

	AdminDao adminDao = new AdminDaoImpl();;

	@Override
	public List<Student> StudentList() {
		// TODO Auto-generated method stub
		return adminDao.StudentList();
	}

	@Override
	public void deleteStudent(Student student) {
		// TODO Auto-generated method stub
		adminDao.deleteStudent(student);
	}

	@Override
	public List<Teacher> TeacherList() {
		// TODO Auto-generated method stub
		return adminDao.TeacherList();
	}

	@Override
	public void deleteTeacher(Teacher teacher) {
		// TODO Auto-generated method stub
		adminDao.deleteTeacher(teacher);
	}

	@Override
	public List<Admin> login(Admin admin) {
		// TODO Auto-generated method stub
		return adminDao.login(admin);
	}
}
